<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>订单管理</title>

		<link href="/Public/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="/Public/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="/Public/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/Public/css/orstyle.css" rel="stylesheet" type="text/css">

		<script src="/Public/assets/js/jquery.min.js"></script>
		<script src="/Public/assets/js/amazeui.js"></script>
		<script src="/Public/home/order.js"></script>	
		<script src="/Public/js/template-native.js"></script>

	</head>

	<body>
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
					<script src="/Public/home/template-native.js"></script>
<script src="/Public/home/login.js"></script>
<!--顶部导航条 -->
			<div class="am-container header">
				<ul class="message-l">
					<div class="topMessage">
						<div class="menu-hd" id="menu-hide">
							<a href="/Home/Login/login" target="_top" class="h">亲，请登录</a>
							<a href="/Home/Login/register" target="_top">免费注册</a>
						</div>
						<div class="menu-hd" id="menu-show">
							
						</div>
					</div>
				</ul>
				<ul class="message-r">
					<div class="topMessage home">
						<div class="menu-hd"><a href="/home/index" target="_top" class="h">商城首页</a></div>
					</div>
					<div class="topMessage my-shangcheng">
						<div class="menu-hd MyShangcheng"><a href="/Home/User/index?id=<?php echo ($_SESSION["uid"]); ?>" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
					</div>
					<div class="topMessage mini-cart">
						<div class="menu-hd"><a id="mc-menu-hd" href="/home/shopcar/shopcart" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h"><?php echo ($count); ?></strong></a></div>
					</div>
					<div class="topMessage favorite">
						<div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
				</ul>
				</div>

				<!--悬浮搜索框-->

				<div class="nav white">
					<div class="logoBig">
						<li><img src="/Public/images/logobig.png" /></li>
					</div>

					<div class="search-bar pr">
						<a name="index_none_header_sysc" href="#"></a>
						<form>
							<input id="searchInput" name="keyword" type="text" placeholder="搜索" autocomplete="off">
							<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="button" onclick="javascript:keysearch(this);">
						</form>
					</div>
				</div>

				<div class="clear"></div>
			</div>
			 
<!--登录与登出窗口-->
<script id="loginin-tql" type="text/html">

	<span>welcome!</span>
	<span><%=data.name%></span>
	<a href="javascript:LOGIN.userloginout();" target="_top">登出</a>
</script>

<script>
function keysearch(obj){
	var keyword = $(obj).prev('#searchInput').val();
	$.get('/Api/search/keysearch' , {keyword:keyword} , function(ret){
			if( ret.status == true){
				window.location.href="/home/search/search?keyword="+keyword;
			}
			else{
				alert(ret.data);
			}
	})
}

	
	
LOGIN.run();
</script>

				</div>
			</article>
		</header>
            <div class="nav-table">
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   <div class="nav-cont">
							<ul>
								<li class="index"><a href="#">首页</a></li>
                                <li class="qc"><a href="#">闪购</a></li>
                                <li class="qc"><a href="#">限时抢</a></li>
                                <li class="qc"><a href="#">团购</a></li>
                                <li class="qc last"><a href="#">大包装</a></li>
							</ul>
						    <div class="nav-extra">
						    	<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
						    	<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
						    </div>
						</div>
			</div>
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-order">

						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">订单管理</strong> / <small>Order</small></div>
						</div>
						<hr/>

						<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

							<ul class="am-avg-sm-5 am-tabs-nav am-nav am-nav-tabs">
								<li class="am-active"><a href="#tab1">所有订单</a></li>
								<li><a href="#tab2">待付款</a></li>
								<li><a href="#tab3">待发货</a></li>
								<li><a href="#tab4">待收货</a></li>
								<li><a href="#tab5">待评价</a></li>
							</ul>

							<div class="am-tabs-bd">
								<div class="am-tab-panel am-fade am-in am-active" id="tab1">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list" id="payall">
										
										</div>

									</div>

								</div>
								<div class="am-tab-panel am-fade" id="tab2">

									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list" id="payno">
											
										</div>

									</div>
								</div>
								<div class="am-tab-panel am-fade" id="tab3">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list" id="payyes">
											
										</div>
									</div>
								</div>
								<div class="am-tab-panel am-fade" id="tab4">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list" id="wareno">
											
										</div>
									</div>
								</div>


								<div class="am-tab-panel am-fade" id="tab5">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list" id="wareyes">
											


										</div>

									</div>

								</div>
							</div>

						</div>
					</div>
				</div>
				<!--底部-->
				<div class="footer ">
	<div class="footer-hd ">
		<p>
			<a href="#">恒望科技</a>
			<b>|</b>
			<a href="/home/index">商城首页</a>
			<b>|</b>
			<a href="# ">支付宝</a>
			<b>|</b>
			<a href="# ">物流</a>
		</p>
	</div>
	<div class="footer-bd ">
		<p>
			<a href="# ">关于恒望</a>
			<a href="# ">合作伙伴</a>
			<a href="# ">联系我们</a>
			<a href="# ">网站地图</a>
			<em>© 2015-2025 Hengwang.com 版权所有</em>
		</p>
	</div>
</div>


			</div>
			<aside class="menu">
				<ul>
	<li class="person active">
		<a href="/Home/User/index?id=<?php echo ($_SESSION["uid"]); ?>"><i class="am-icon-user"></i>个人中心</a>
	</li>
	<li class="person">
		<p><i class="am-icon-newspaper-o"></i>个人资料</p>
		<ul>
			<li> <a href="/Home/User/information?id=<?php echo ($_SESSION["uid"]); ?>" target="_top">个人信息</a></li>
			<li> <a href="safety.html">安全设置</a></li>
			<li> <a href="/Home/User/address?id=<?php echo ($_SESSION["uid"]); ?>">地址管理</a></li>
			<li> <a href="cardlist.html">快捷支付</a></li>
		</ul>
	</li>
	<li class="person">
		<p><i class="am-icon-balance-scale"></i>我的交易</p>
		<ul>
			<li><a href="/Home/User/order?id=<?php echo ($_SESSION["uid"]); ?>">订单管理</a></li>
			<li> <a href="change.html">退款售后</a></li>
			<li> <a href="/home/user/comment?id=<?php echo ($_SESSION["uid"]); ?>">评价商品</a></li>
		</ul>
	</li>
	<li class="person">
		<p><i class="am-icon-dollar"></i>我的资产</p>
		<ul>
			<li> <a href="points.html">我的积分</a></li>
			<li> <a href="coupon.html">优惠券 </a></li>
			<li> <a href="bonus.html">红包</a></li>
			<li> <a href="walletlist.html">账户余额</a></li>
			<li> <a href="bill.html">账单明细</a></li>
		</ul>
	</li>

	<li class="person">
		<p><i class="am-icon-tags"></i>我的收藏</p>
		<ul>
			<li> <a href="collection.html">收藏</a></li>
			<li> <a href="foot.html">足迹</a></li>														
		</ul>
	</li>

	<li class="person">
		<p><i class="am-icon-qq"></i>在线客服</p>
		<ul>
			<li> <a href="consultation.html">商品咨询</a></li>
			<li> <a href="suggest.html">意见反馈</a></li>							
			
			<li> <a href="news.html">我的消息</a></li>
		</ul>
	</li>
</ul>


			</aside>
		</div>

	</body>
	

<!--所有订单-->
<script id="payall-list-tql" type="text/html">
<%for (var i=0;i<data.length;i++) {%>
	<div class="order-status5">
		<div class="order-title">
			<div class="dd-num">订单编号：<a href="javascript:;" class="orderid"><%=data[i].order_id%></a></div>
			<span>成交时间：<%=dateFormat(data[i].addtime)%></span>
			<!--    <em>店铺：小桔灯</em>-->
		</div>
		<div class="order-content">
			<div class="order-left">
				<%var reply = data[i].reply%>
				<%for (var j=0;j<reply.length;j++) {%>
				<ul class="item-list">
					<li class="td td-item">
						<div class="item-pic">
							<a href="#" class="J_MakePoint">
								<img src="<%=reply[j].head_img%>" width="50" height="50" class="itempic J_ItemImg">
							</a>
						</div>
						<div class="item-info">
							<div class="item-basic-info">
								<a href="#">
									<p><%=reply[j].ware_name%></p>
									<p class="info-little"><%=reply[j].ware_cart%>：<%=reply[j].cart_list%>
									</p>
								</a>
							</div>
						</div>
					</li>
					<li class="td td-price">
						<div class="item-price">
							<%=reply[j].price%>
						</div>
					</li>
					<li class="td td-number">
						<div class="item-number">
							<span>×</span><%=reply[j].cart_num%>
						</div>
					</li>
					<li class="td td-operation">
						<div class="item-operation">
							
						</div>
					</li>
				</ul>
				<%}%>
			</div>
			<div class="order-right">
				<li class="td td-amount">
					<div class="item-amount">
						合计：<%=data[i].payprice%>
						<p>含运费：<span><%=data[i].tips%></span></p>
					</div>
				</li>
				<div class="move-right">
					<%if (data[i].status == 1) {%>
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus"><a href="/home/pay/pay?order_id=<%=data[i].order_id%>">等待买家付款</a></p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
						</div>
					</li>
					<li class="td td-change">
						<a onclick="delware(this);" class="am-btn am-btn-danger anniu">
							删除订单</a>
					</li>
					<%}%>
					<%if (data[i].status == 2) {%>
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus">买家已付款</p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
						</div>
					</li>
					<li class="td td-change">
						<div class="am-btn am-btn-danger anniu">
							提醒发货</div>
					</li>
					<%}%>
					<%if (data[i].status == 3) {%>
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus">卖家已发货</p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
							<p class="order-info"><a href="/home/user/logistics">查看物流</a></p>
							<p class="order-info"><a href="#">延长收货</a></p>
						</div>
					</li>
					<li class="td td-change">
						<input type="hidden" class="status" value="<%=data[i].status%>">
						<a onclick="warereal(this);" class="am-btn am-btn-danger anniu">
							确认收货</a>
					</li>
					<%}%>
					<%if (data[i].status == 4) {%>
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus">交易成功</p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
							<p class="order-info"><a href="/home/user/logistics">查看物流</a></p>
						</div>
					</li>
					<li class="td td-change">
						<a href="/home/user/commentlist?order_id=<%=data[i].order_id%>" class="am-btn am-btn-danger anniu">
							立刻评价</a>
					</li>
					<%}%>
					<%if (data[i].status == 5) {%>
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus">已完成</p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
							<p class="order-info"><a href="/home/user/logistics">查看物流</a></p>
						</div>
					</li>
					<%}%>
				</div>
			</div>
		</div>
	</div>
<%}%>
</script>

<!--待付款-->
<script id="payno-list-tql" type="text/html">
<%for (var i=0;i<data.length;i++) {%>
	<%if (data[i].status == 1) {%>
	<div class="order-status5">
		<div class="order-title">
			<div class="dd-num">订单编号：<a href="javascript:;"><%=data[i].order_id%></a></div>
			<span>成交时间：<%=dateFormat(data[i].addtime)%></span>
			<!--    <em>店铺：小桔灯</em>-->
		</div>
		<div class="order-content">
			<div class="order-left">
				<%var reply = data[i].reply%>
				<%for (var j=0;j<reply.length;j++) {%>
				<ul class="item-list">
					<li class="td td-item">
						<div class="item-pic">
							<a href="#" class="J_MakePoint">
								<img src="<%=reply[j].head_img%>" width="50" height="50" class="itempic J_ItemImg">
							</a>
						</div>
						<div class="item-info">
							<div class="item-basic-info">
								<a href="#">
									<p><%=reply[j].ware_name%></p>
									<p class="info-little"><%=reply[j].ware_cart%>：<%=reply[j].cart_list%>
									</p>
								</a>
							</div>
						</div>
					</li>
					<li class="td td-price">
						<div class="item-price">
							<%=reply[j].price%>
						</div>
					</li>
					<li class="td td-number">
						<div class="item-number">
							<span>×</span><%=reply[j].cart_num%>
						</div>
					</li>
					<li class="td td-operation">
						<div class="item-operation">
							
						</div>
					</li>
				</ul>
				<%}%>
			</div>
			<div class="order-right">
				<li class="td td-amount">
					<div class="item-amount">
						合计：<%=data[i].payprice%>
						<p>含运费：<span><%=data[i].tips%></span></p>
					</div>
				</li>
				<div class="move-right">
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus"><a href="/home/pay/pay?order_id=<%=data[i].order_id%>">等待买家付款</a></p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
						</div>
					</li>
					<li class="td td-change">
						<a onclick="delware(this);" class="am-btn am-btn-danger anniu">
							删除订单</a>
					</li>
				</div>
			</div>
		</div>
	</div>
	<%}%>
<%}%>
</script>

<!--待发货-->
<script id="payyes-list-tql" type="text/html">
<%for (var i=0;i<data.length;i++) {%>
	<%if (data[i].status == 2) {%>
	<div class="order-status5">
		<div class="order-title">
			<div class="dd-num">订单编号：<a href="javascript:;"><%=data[i].order_id%></a></div>
			<span>成交时间：<%=dateFormat(data[i].addtime)%></span>
			<!--    <em>店铺：小桔灯</em>-->
		</div>
		<div class="order-content">
			<div class="order-left">
				<%var reply = data[i].reply%>
				<%for (var j=0;j<reply.length;j++) {%>
				<ul class="item-list">
					<li class="td td-item">
						<div class="item-pic">
							<a href="#" class="J_MakePoint">
								<img src="<%=reply[j].head_img%>" width="50" height="50" class="itempic J_ItemImg">
							</a>
						</div>
						<div class="item-info">
							<div class="item-basic-info">
								<a href="#">
									<p><%=reply[j].ware_name%></p>
									<p class="info-little"><%=reply[j].ware_cart%>：<%=reply[j].cart_list%>
									</p>
								</a>
							</div>
						</div>
					</li>
					<li class="td td-price">
						<div class="item-price">
							<%=reply[j].price%>
						</div>
					</li>
					<li class="td td-number">
						<div class="item-number">
							<span>×</span><%=reply[j].cart_num%>
						</div>
					</li>
					<li class="td td-operation">
						<div class="item-operation">
							
						</div>
					</li>
				</ul>
				<%}%>
			</div>
			<div class="order-right">
				<li class="td td-amount">
					<div class="item-amount">
						合计：<%=data[i].payprice%>
						<p>含运费：<span><%=data[i].tips%></span></p>
					</div>
				</li>
				<div class="move-right">
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus">买家已付款</p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
						</div>
					</li>
					<li class="td td-change">
						<div class="am-btn am-btn-danger anniu">
							提醒发货</div>
					</li>
				</div>
			</div>
		</div>
	</div>
	<%}%>
<%}%>
</script>

<!--待收货-->
<script id="wareno-list-tql" type="text/html">
<%for (var i=0;i<data.length;i++) {%>
	<%if (data[i].status == 3) {%>
	<div class="order-status3">
		<div class="order-title">
			<div class="dd-num">订单编号：<a href="javascript:;" class="orderid"><%=data[i].order_id%></a></div>
			<span>成交时间：<%=dateFormat(data[i].addtime)%></span>
			<!--    <em>店铺：小桔灯</em>-->
		</div>
		<div class="order-content">
			<div class="order-left">
				<%var reply = data[i].reply%>
				<%for (var j=0;j<reply.length;j++) {%>
				<ul class="item-list">
					<li class="td td-item">
						<div class="item-pic">
							<a href="#" class="J_MakePoint">
								<img src="<%=reply[j].head_img%>" width="50" height="50" class="itempic J_ItemImg">
							</a>
						</div>
						<div class="item-info">
							<div class="item-basic-info">
								<a href="#">
									<p><%=reply[j].ware_name%></p>
									<p class="info-little"><%=reply[j].ware_cart%>：<%=reply[j].cart_list%>
									</p>
								</a>
							</div>
						</div>
					</li>
					<li class="td td-price">
						<div class="item-price">
							<%=reply[j].price%>
						</div>
					</li>
					<li class="td td-number">
						<div class="item-number">
							<span>×</span><%=reply[j].cart_num%>
						</div>
					</li>
					<li class="td td-operation">
						<div class="item-operation">
							
						</div>
					</li>
				</ul>
				<%}%>
			</div>
			<div class="order-right">
				<li class="td td-amount">
					<div class="item-amount">
						合计：<%=data[i].payprice%>
						<p>含运费：<span><%=data[i].tips%></span></p>
					</div>
				</li>
				<div class="move-right">
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus">卖家已发货</p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
							<p class="order-info"><a href="/home/user/logistics">查看物流</a></p>
							<p class="order-info"><a href="#">延长收货</a></p>
						</div>
					</li>
					<li class="td td-change">
						<input type="hidden" class="status" value="<%=data[i].status%>">
						<a onclick="warereal(this);" class="am-btn am-btn-danger anniu">
							确认收货</a>
					</li>
				</div>
			</div>
		</div>
	</div>
	<%}%>
<%}%>
</script>

<!--待评价-->
<script id="wareyes-list-tql" type="text/html">
<%for (var i=0;i<data.length;i++) {%>
	<%if (data[i].status == 4) {%>
	<div class="order-status5">
		<div class="order-title">
			<div class="dd-num">订单编号：<a href="javascript:;"><%=data[i].order_id%></a></div>
			<span>成交时间：<%=dateFormat(data[i].addtime)%></span>
			<!--    <em>店铺：小桔灯</em>-->
		</div>
		<div class="order-content">
			<div class="order-left">
				<%var reply = data[i].reply%>
				<%for (var j=0;j<reply.length;j++) {%>
				<ul class="item-list">
					<li class="td td-item">
						<div class="item-pic">
							<a href="#" class="J_MakePoint">
								<img src="<%=reply[j].head_img%>" width="50" height="50" class="itempic J_ItemImg">
							</a>
						</div>
						<div class="item-info">
							<div class="item-basic-info">
								<a href="#">
									<p><%=reply[j].ware_name%></p>
									<p class="info-little"><%=reply[j].ware_cart%>：<%=reply[j].cart_list%>
									</p>
								</a>
							</div>
						</div>
					</li>
					<li class="td td-price">
						<div class="item-price">
							<%=reply[j].price%>
						</div>
					</li>
					<li class="td td-number">
						<div class="item-number">
							<span>×</span><%=reply[j].cart_num%>
						</div>
					</li>
					<li class="td td-operation">
						<div class="item-operation">
							
						</div>
					</li>
				</ul>
				<%}%>
			</div>
			<div class="order-right">
				<li class="td td-amount">
					<div class="item-amount">
						合计：<%=data[i].payprice%>
						<p>含运费：<span><%=data[i].tips%></span></p>
					</div>
				</li>
				<div class="move-right">
					<li class="td td-status">
						<div class="item-status">
							<p class="Mystatus">交易成功</p>
							<p class="order-info"><a href="/home/user/orderinfo?order_id=<%=data[i].order_id%>">订单详情</a></p>
							<p class="order-info"><a href="/home/user/logistics">查看物流</a></p>
						</div>
					</li>
					<li class="td td-change">
						<a href="/home/user/commentlist?order_id=<%=data[i].order_id%>" class="am-btn am-btn-danger anniu">
							立刻评价</a>
					</li>
				</div>
			</div>
		</div>
	</div>
	<%}%>
<%}%>
</script>

<script>
function getLocalTime(nS) {     
	return new Date(parseInt(nS) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");      
}    
function getprogram(name) { 
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
	var r = window.location.search.substr(1).match(reg); 
	if (r != null) return unescape(r[2]); return null; 
} 
var id = getprogram('id');

//确认收货接口
function warereal(obj){
	var order_id = $(obj).parents('.order-content').prev('.order-title').find('.orderid').html();
	
	$.post('/Api/order/warereal' , {order_id:order_id} , function(ret){
		if( ret.status == true){
			alert(ret.data);
			window.location.href="";
		}
		else{
			alert(ret.data);
		}
	});
}

//删除订单接口
function delware(obj){
	var order_id = $(obj).parents('.order-content').prev('.order-title').find('.orderid').html();
	
	$.post('/Api/order/delware' , {order_id:order_id} , function(ret){
		if( ret.status == true){
			alert(ret.data);
			window.location.href="";
		}
		else{
			alert(ret.data);
		}
	});
}

ORDER.run();
</script>
</html>